﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Data.AggregateRoot
{
    public interface IPrimaryKey<T>
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        T Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        DateTime CreateTime { get; set; }
    }
}